/*
@InterfaceName JobScheduleMapper
@Date      2022/8/2
@Description TODO
@Author    SubUp
@version   1.0
*/
package com.sunjob.mrojobschedule.mapper;

import com.sunjob.common.domain.scheduleServer.JobSchedule;
import com.sunjob.common.domain.scheduleServer.orm.JobResult;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface JobScheduleMapper {
    List<JobSchedule> queryAllJob();
    List<JobResult> queryAllJobResult();
    List<JobResult> queryJobById(@Param("jobId") Long jobId);
    List<JobSchedule> queryJobPrimById(@Param("jobId") Long jobId);
    List<JobResult> queryJobByLevel(@Param("jobLevel") Integer jobLevel);
    List<JobResult> queryJobByStaffId(@Param("staffId") String staffId);
    List<JobResult> queryJobByStaffName(@Param("staffName") String staffName);
    List<JobResult> queryJobByFeedBack(@Param("jobFeedBack") Integer jobFeedBack);
    Integer insertJob(JobSchedule job);
    Integer updateJob(JobSchedule job);
    Integer removeJob(Long jobId);
    Integer updateJobByJobFeedBack(@Param(value = "jobId") Long jobId,@Param(value = "jobFeedBack") Integer jobFeedBack);
    Integer updateJobByJobLevel(@Param(value = "jobId") Long jobId,@Param(value = "jobLevel") Integer jobLevel);
    Integer deleteJob(Long jobId);
    Integer recordsJob(@Param("jobLevel") Integer jobLevel,@Param("jobFeedBack") Integer jobFeedBack);
}
